package com.maiji.cloud.utils;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.BeanUtils;

import com.alibaba.fastjson.JSON;
import com.maiji.cloud.entities.login.AppUser;

public enum CommonStringValueEnum {

	FUNCYION_MENUE_TYPE_INTRODUCE("introduce","麦吉简介"),
	FUNCYION_MENUE_TYPE_RECORD("record","每日记录"),
	FUNCYION_MENUE_TYPE_FOODSEARCH("foodSearch","食材查询"),
	FUNCYION_MENUE_TYPE_RECIPEREC("recipeRec","麦食"),
	FUNCYION_MENUE_TYPE_VIEW("view","视频"),
	FUNCYION_MENUE_TYPE_SHOPPING_BANNNER("shopping_banner","商品bannner图"),
	FUNCYION_MENUE_TYPE_APPLET_INTRODUCE("applet_introduce","麦吉简介"),
	FUNCYION_MENUE_TYPE_APPLET_FOODSEARCH("applet_foodSearch","食材查询"),
	FUNCYION_MENUE_TYPE_APPLET_RECIPEREC("applet_recipeRec","麦食"),
	FUNCYION_MENUE_TYPE_INTEGRAL_SHOPPING_BANNNER("integral_shopping_banner","积分商品bannner图"),
	FUNCYION_MENUE_TYPE_COMMUNITY_BANNNER("community_banner","社区动态bannner图"),
	
	IMAGE_URL_SMALL("?x-oss-process=image/resize,l_500","图片有原图转缩略图路径拼接字符串"),
	SHOPPING_NOTICE("购物须知","全场满39元包邮，甘肃、青海、宁夏、内蒙、海南、新疆、西藏地区除外"),
	SHOPPING_HINT("提示","店铺不支持7天无理由退换货");
	
	private String value;
	private String description;
	
	private CommonStringValueEnum(String value, String description){
		this.value = value;
		this.description = description;
	}

	public String getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}
	
	public static void main(String[] args) {
		
		AppUser appUser = new AppUser();
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("tel", "18365728973");
		BeanUtils.copyProperties(map, appUser);
		System.out.println(JSON.toJSONString(appUser));
	}
}
